package programme;

public class Zensor {
	public static void main(String[] args) {
		String x = "ist langweilig gewesen";
		String y = zensiere(x);
		System.out.println(y);
	}

	public static String zensiere(String x) {
		
		String[] unpassend = new String[5];
		unpassend[0] = "ist";
		unpassend[1] = "unstrukturiert";
		unpassend[2] = "monoton";
		unpassend[3] = "uninteressant";
		unpassend[4] = "unfreundlich";
		String[] passend = new String[5];
		passend[0] = "aufregend";
		passend[1] = "kreativ";
		passend[2] = "nachvollziehbar";
		passend[3] = "inspirierend";
		passend[4] = "liebenswert";
		
		for (int i = 0; i < 5; i++) {
			x = x.replace(unpassend[i], passend[i]);
		}

		return x;
	}
}
